projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80c5234
)
* src/xwidget.c (webkit_js_to_lisp): Use correct constant to check size.
author
Po Lu
<luangruo@yahoo.com>
Sun, 16 Jan 2022 02:05:17 +0000
(10:05 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Sun, 16 Jan 2022 02:05:17 +0000
(10:05 +0800)
src/xwidget.c
patch
|
blob
|
history
diff --git
a/src/xwidget.c
b/src/xwidget.c
index 45879b15cbeaebbb373c8ab0a7c4398782b38550..fce0aafb09952bd8ca50beae253343c4b3293969 100644
(file)
--- a/
src/xwidget.c
+++ b/
src/xwidget.c
@@
-1855,7
+1855,7
@@
webkit_js_to_lisp (JSCValue *value)
const gint32 dlen = jsc_value_to_int32 (len);
Lisp_Object obj;
- if (! (0 <= dlen && dlen <
PTRDIFF_MAX + 1.0
))
+ if (! (0 <= dlen && dlen <
G_MAXINT32 + 1
))
memory_full (SIZE_MAX);
ptrdiff_t n = dlen;